MTextBox – A textbox with an attached titled panel and button.
Creation: MTextBox_New(caption$, autocomplete, x, y, pixelwidth)
caption$ - The text that is displayed caption title window.
autocomplete – Autocomplete mode (requires dictionary.txt in program dir). 0=off; 1=on
x – Pixel X coordinate for the top left corner of the textbox.
y – Pixel Y coordinate for the top left corner of the textbox.
pixelwidth – The width of the textbox in pixels.
Functions:
MTextBox_Clear(index)
Clears the textbox text and pressed state.
MTextBox_ClearSelected(index)
Clears the pressed status of the textbox.
MTextBox_Delete(index)
Deletes the textbox.
MTextBox_Disable(index)
Disables the textbox, preventing further input.
MTextBox_Draw(index)
Draws the textbox to screen.
MTextBox_Enable(index)
Enables the textbox, allowing further input.
MTextBox_GetSelected(index)
Returns textbox pressed status. If text was submitted by return key or button. 0=no ; 1=yes
MTextBox_GetText(index)
Returns string, the text currently typed into the textbox.
MTextBox_SetCaption(index, caption$)
Sets the title caption for the textbox.
MTextBox_SetText(index, text$)
Sets the text currently typed into the textbox. Adjusts cursor to end of text.
MTextBox_SetTextColor(index, color)
Overrides the default text color for the textbox. ARGB format.